package com.jy.datapipeline.importserver.mapper;

import com.jy.datapipeline.importserver.entity.ImportRetrySubtask;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface ImportRetrySubtaskMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ImportRetrySubtask record);

    int insertSelective(ImportRetrySubtask record);

    ImportRetrySubtask selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ImportRetrySubtask record);

    int updateByPrimaryKey(ImportRetrySubtask record);

    List<ImportRetrySubtask> selectByStatus(int status);

    int deleteBySubtaskIds(@Param("subtaskIds") Set<Long> subtaskIds);

    int batchUpdateStatus(@Param("retrySubtaskIds") Set<String> retrySubtaskIds);
}